export function getPropertyData(data, pString) {
	if (typeof data !== 'object') {
		return
	}
	let modeString = pString.replace(/\[|\]/g, '.').replace(/\.{1,n}/g, '.')
	return modeString
		.trim()
		.split('.')
		.filter((v) => !!v)
		.reduce((a, i) => {
			return a ? a[i] : undefined
		}, data)
}
